#include "seqlist.h"
										
int main(void)
{
	pseqlist p;
	p = creat_seqlist();
	STUDENT student;
	while (1) 
	{
		printf("输入学生信息（学号 姓名 成绩）：\n");
		scanf("%d%s%f", &student.num, student.name, &student.score);
		if (student.num > 0) 
		{
			insert(p,student);
			print_seqlist(p);
		} 
		else if (student.num < 0)
		{
			delete(p,-student.num);
			print_seqlist(p);
		}
		else
			break;
	}

	return 0;
}

